//
//  RBAccountManager.h
//  Culture
//
//  Created by Lan on 2017/9/9.
//  Copyright © 2017年 SummerTea. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface RBAccountManager : NSObject

#pragma mark - keychain存储

+ (NSString *)getKeychainAccount;                   /**<账号*/
+ (void)setKeychainAccount: (NSString *)account;    /**<传nil删除*/

+ (NSString *)getKeychainPassword;                  /**<密码*/
+ (void)setKeychainPassword: (NSString *)password;  /**<传nil删除*/

+ (NSString *)getKeychainToken;                     /**<token*/
+ (void)setKeychainToken: (NSString *)token;        /**<传nil删除*/

+ (NSString *)getUDID;

#pragma mark - 内存存储

+ (instancetype)manager;    /**<单例*/
@property(nonatomic, copy) NSString *userId;
@property(nonatomic, copy) NSString *sessionId;
@property(nonatomic, copy) NSString *token;

#pragma mark - 持久化存储

+ (NSString *)getUserId;
+ (void)setUserId: (NSString *)userId;

+ (NSString *)getSessionId;
+ (void)setSessionId: (NSString *)sessionId;

+ (NSString *)getToken;
+ (void)setToken: (NSString *)token;

//标识符,主要用于上架审核的隐藏
+ (BOOL)ttc;
+ (void)setTtc: (BOOL)ttc;

//国行手机是否通过了用户网络授权
+ (BOOL)netPass;
+ (void)setNetPass: (BOOL)netPass;

@end
